package com.mrjy.maintain.controller;

import com.mrjy.common.entity.UserMemberInfo;
import com.mrjy.maintain.bo.IUserMemberInfoBo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@RequestMapping("/maintain/userMemberInfo")
@Controller
public class UserMemberInfoController {

	@Resource
	private IUserMemberInfoBo userMemberInfoBo;

//	/**
//	 * 选择年级
//	 * @param session
//	 * @param rDto
//	 * @return
//	 */
//	@RequestMapping("/selectGradeInfo")
//	@ResponseBody
//	public String selectGradeInfo(HttpSession session,GradeParaDto rDto){
//		UserInfo userInfo = (UserInfo) session.getAttribute(GlobalConstant.USER_INFO);
//		userInfo= userMemberInfoBo.txUpdateGradeInfo(rDto, userInfo);
//		session.setAttribute(GlobalConstant.USER_INFO, userInfo);
//		return userInfo.getMessageString();
//	}
	/**
	 * 根据用户id查询是否为vip
	 * @param info
	 * @return
	 */
	@RequestMapping("/isVip")
	@ResponseBody
	public Object isVip(UserMemberInfo info){
		return userMemberInfoBo.isVip(info);
	}
	
}
